package com.meiyue.config.listener;

import com.meiyue.library.utils.MsgUtils;
import org.springframework.boot.context.event.ApplicationPreparedEvent;
import org.springframework.context.ApplicationListener;

import javax.servlet.annotation.WebListener;

/**
 * MeiyueJavaProject
 * com.meiyue.config.listener
 * Created by Chris Chen
 * 2017/9/16
 * Explain:自定义监听器
 */
@WebListener
public class StartAppListener implements ApplicationListener<ApplicationPreparedEvent> {
    @Override
    public void onApplicationEvent(ApplicationPreparedEvent applicationEvent) {
        MsgUtils.println("自定义监听器:ApplicationPreparedEvent->onApplicationEvent");
    }
}
